package ysq.xyg.${module}.service;


import ysq.xyg.base.model.dto.ReturnEntity;
import ysq.xyg.base.service.BaseService;
import ysq.xyg.${module}.model.po.${entity};
import ysq.xyg.sys.model.po.SysUser;
import ysq.xyg.${module}.model.vo.${entity}Vo;

import java.util.List;

/**
 * ${tableComment}service接口
 *
 * @author ${author}
 * @date ${.now}
 */
public interface ${entity}Service extends BaseService<${entity}> {
    /**
     * 分页查询
     *
     * @param ${entity?uncap_first}Vo 对象
     * @param pageSize 当前页面
     * @param pageNum 页面数量
     * @return ReturnEntity 对象
     * @author ${author}
     * @date ${.now}
     */
    ReturnEntity page(${entity}Vo ${entity?uncap_first}Vo, int pageSize, int pageNum);
    /**
     * 修改
     *
     * @param ${entity?uncap_first}Vo 对象
     * @param currentUser 当前用户
     * @return ReturnEntity 对象
     * @author ${author}
     * @date ${.now}
     */
    ReturnEntity addOrUpdate(${entity}Vo ${entity?uncap_first}Vo, SysUser currentUser);
    /**
     * 删除
     *
     * @param id 主键id删除
     * @param currentUser 当前用户
     * @return ReturnEntity 对象
     * @author ${author}
     * @date ${.now}
     */
    ReturnEntity delete(String id, SysUser currentUser);
    /**
     * 获取集合
     *
     * @param ${entity?uncap_first}Vo 对象
     * @return List<${entity}> ${entity}集合
     * @author ${author}
     * @date ${.now}
     */
    List<${entity}> acceptList(${entity}Vo ${entity?uncap_first}Vo);
}
